export default {
  state: {
    www_img_modal: false,
    www_video_modal: false
  },
  mutations: {
    SET_WWW_IMG_MODAL: (state, data) => {
      state.www_img_modal = data
    },
    SET_WWW_VIDEO_MODAL: (state, data) => {
      state.www_video_modal = data
    }
  },
  actions: {
    showWwwImgModal ({ commit }) {
      commit('SET_WWW_IMG_MODAL', true)
    },
    hiddenWwwImgModal ({ commit }) {
      commit('SET_WWW_IMG_MODAL', false)
    },
    showWwwVideoModal ({ commit }) {
      commit('SET_WWW_VIDEO_MODAL', true)
    },
    hiddenWwwVideoModal ({ commit }) {
      commit('SET_WWW_VIDEO_MODAL', false)
    }
  }
}
